<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-wimages"  class="form-control" size="50" name="row[wimages]" type="text" value="{$row.wimages|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-wimages" class="btn btn-danger faupload" data-input-id="c-wimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-wimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-wimages" class="btn btn-primary fachoose" data-input-id="c-wimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-wimages"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-wimages"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" class="form-control" name="row[lng]" type="text" value="{$row.lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lat" class="form-control" name="row[lat]" type="text" value="{$row.lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Types')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-types" class="form-control selectpicker" name="row[types]">
                {foreach name="typesList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.types"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quyu_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-types" class="form-control selectpicker" name="row[quyu_id]">
                {foreach name="quyu" item="vo"}
                <option value="{$vo.id}" {in name="$row['quyu_id']" value="$vo.id"}selected{/in}>{$vo.text}</option>
                {/foreach}
            </select>



        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_name" class="form-control" name="row[c_name]" type="text" value="{$row.c_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-c_sex" class="form-control selectpicker" name="row[c_sex]">
                {foreach name="cSexList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.c_sex"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_mobile" class="form-control" name="row[c_mobile]" type="text" value="{$row.c_mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_wx')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_wx" class="form-control" name="row[c_wx]" type="text" value="{$row.c_wx|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('M_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-m_name" class="form-control" name="row[m_name]" type="text" value="{$row.m_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('M_sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-m_sex" class="form-control selectpicker" name="row[m_sex]">
                {foreach name="mSexList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.m_sex"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('M_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-m_mobile" class="form-control" name="row[m_mobile]" type="text" value="{$row.m_mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('M_wx')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-m_wx" class="form-control" name="row[m_wx]" type="text" value="{$row.m_wx|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rival_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rival_name" class="form-control" name="row[rival_name]" type="text" value="{$row.rival_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rival_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rival_date" class="form-control" name="row[rival_date]" type="text" value="{$row.rival_date|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rival_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-rival_desc" class="form-control " rows="5" name="row[rival_desc]" cols="50">{$row.rival_desc|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[time]" type="text" value="{:$row.time?datetime($row.time):''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desc" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
